let mix = require('laravel-mix');
mix.disableNotifications();

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix
    // .sass('resources/sass/bootstrap.scss', 'public/css/vendor')
    // .sass('resources/sass/element-ui.scss', 'public/css/vendor')
    .sass('resources/sass/entry/index.scss', 'public/css/entry/index.css')
    .sass('resources/sass/index/index.scss', 'public/css/index/index.css')
    .sass('resources/sass/search/index.scss', 'public/css/search/index.css')
    .sass('resources/sass/post/index.scss', 'public/css/post/index.css')
    .sass('resources/sass/seller/index.scss', 'public/css/seller/index.css')
    .sass('resources/sass/user/index.scss', 'public/css/user/index.css')
    .sass('resources/sass/admin/index.scss', 'public/css/admin/index.css')
    .sass('resources/sass/auth/index.scss', 'public/css/auth/index.css')
    .sass('resources/sass/auction/index.scss', 'public/css/auction/index.css')
    .sass('resources/sass/cart/index.scss', 'public/css/cart/index.css')
    .sass('resources/sass/trade/index.scss', 'public/css/trade/index.css')
    .sass('resources/sass/item/detail.scss', 'public/css/item/detail.css')
    .sass('resources/sass/item/youxuan.scss', 'public/css/item/youxuan.css')
    .sass('resources/sass/shop/index.scss', 'public/css/shop/index.css')
    .sass('resources/sass/h5/index.scss', 'public/css/h5/index.css')
    .sass('resources/sass/errors/index.scss', 'public/css/errors/index.css')
    .sass('resources/sass/widget/index.scss', 'public/css/widget/index.css')
    .sass('resources/sass/app/index.scss', 'public/css/app/index.css')
    .options({
        processCssUrls: false
    });

//mix.less('resources/sass/vant.less', 'public/css/vendor');

mix.js('resources/js/seller/pubitem.js', 'public/js/seller');
mix.js('resources/js/seller/deal_setting.js', 'public/js/seller').version();
//
// if (mix.inProduction()) {
//     mix.version();
// }

//mix.js('resources/js/base.js', 'public/js/base.js').extract(['vue', 'jquery']);

//mix.js('resources/js/h5/base.js', 'public/js/h5').version();
//mix.js('resources/js/h5/index.js', 'public/js/h5').version();
